<template>
  <div class="registermsg">
    <div class="msg-box">
      <img src="../../../../assets/images/login/complete.png" alt="" />
      <p>注册完成！</p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      timer: null,
    };
  },
  mounted() {
    this.timer = setTimeout(() => {
      this.$router.push("/login");
    }, 3000);
  },
  methods: {},
  destroyed() {
    clearInterval(this.timer);
  },
};
</script>

<style scoped>
.registermsg {
  height: 100vh;
  background: #fafafa;
  position: relative;
}
.msg-box {
  margin-top: 146px;
  height: 62px;
  width: 100%;
  background: #ffffff;
  box-shadow: 0px 5px 12px 0px rgba(3, 3, 3, 0.1);
  text-align: center;
  line-height: 62px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.msg-box img {
  width: 20px;
  height: 20px;
  margin-right: 7px;
}
.msg-box p {
  letter-spacing: 2px;
  font-size: 18px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  color: #333333;
}
</style>